package middle

import (
	"chart.zozoo.net/app/utils/rsp"
	"github.com/gin-gonic/gin"
)

// Auth 用户认证
func Auth() gin.HandlerFunc {
	return func(c *gin.Context) {
		token := c.Request.Header.Get("Authorization")
		if token == "" {
			rsp.JsonErr(c, rsp.SetMsg("no Authorization"))
			c.Abort()
		} else {

		}
	}
}
